#include <stdint.h>
#include <stdio.h>
#include "Singleton.h"

extern "C"
int flutterFilter(int type, int origin) {
    Singleton *singleton = Singleton::get_instance();
    singleton->precaculate(250, type, 0, 8, 40, 0);
    return singleton->calculate(origin, type, 0);
}

